<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #box{
            width: 600px;
            margin: 20px auto;
        }
        img{
            width: 10%;
        }
    </style>
</head>
<body >
    <div id="box"> 
        <img src="img/0.png" alt="">
        <img src="img/0.png" alt="">
        <img src="img/0.jpg" alt="">
        <img src="img/0.png" alt="">
        <img src="img/0.png" alt="">
        <img src="img/0.jpg" alt="">
        <img src="img/0.png" alt="">
        <img src="img/0.png" alt="">
    </div>
    <script>
    function get(){
        var img=document.getElementsByTagName('img');  
        var date=new Date();
        var hour=date.getHours();
        var minute=date.getMinutes();
        var secind=date.getSeconds();
        img[0].src='img/'+parseInt(hour/10)+'.png';
        img[1].src='img/'+hour%10+'.png';
        img[3].src='img/'+parseInt(minute/10)+'.png';
        img[4].src='img/'+minute%10+'.png';
        img[6].src='img/'+parseInt(secind/10)+'.png';
        img[7].src='img/'+secind%10+'.png';
    }
    get(); 
    setInterval(get,1000);
    </script>
</body>
</html>